#! python
# -*- coding: utf-8 -*-
import re
from glob import glob as find

log_files_list = find('./*.log')
result_ips = set()

#print log_files_list
for logFile in log_files_list:

    with open(logFile, "r") as file:
        for line in file:
            #print line
            ips_list = re.findall("[\d]+", line)[:4]
            if '"http://ane4k.in/"' not in line: result_ips.add(".".join(ips_list))
            #break

print "Result ip's:"
print "\n".join(result_ips)